package com.pctx.bibadevicemanager.service;

import com.pctx.bibacommon.result.Result;
import com.pctx.bibadevicemanager.pojo.TrackerSharePermission;

/**
 * Created by chason on 2018/3/12.16:14
 */
public interface TrackerSharePermissionService {
    boolean addDefaultPermission(String deviceUserUuid, String deviceUuid, String userUuid) throws Exception;

    boolean updateByUuid(TrackerSharePermission trackerSharePermission) throws Exception;

    boolean updateByPrimaryKey(TrackerSharePermission trackerSharePermission) throws Exception;

    TrackerSharePermission getByUuid(String uuid) throws Exception;

    Result updateTrackerPermission(String uuid, Byte trackerFlag, Byte fenceFlag) throws Exception;
}
